package nl.mvvenrooij.recommended.twitter.data;

import java.net.URL;


public class URLEntity {

    private URL url;

    public URL getUrl() {
        return url;
    }

    public void setUrl(URL url) {
        this.url = url;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        URLEntity urlEntity = (URLEntity) o;

        return !(url != null ? !url.equals(urlEntity.url) : urlEntity.url != null);

    }

    @Override
    public int hashCode() {
        return url != null ? url.hashCode() : 0;
    }

    @Override
    public String toString() {
        return "URLEntity{" +
                "url=" + url +
                '}';
    }
}
